function fibonacci(n)
    if n <= 1 then return n end
    return fibonacci(n - 1) + fibonacci(n - 2)
end

io.write("请输入要计算的 Fibonacci 数字: ")
n = tonumber(io.read())
print(fibonacci(n))
